﻿/* $RCSFile: PluginImageAttribute.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/CRMWrapper3/Plugins/PluginImageAttribute.cs $
 * $log$
 * Revision 6 2010/08/06 19:56:33  christian.surieux
 *   Added Log to All cs files
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

using CrmSdk;
using AddonNice.CRMWrapper.CRM4Server;

namespace AddonNice.CRMWrapper.Plugins
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple=true)]
    public class PluginImageAttribute: Attribute
    {
        public PluginImageAttribute(ImageType imageType, string stepId, string messagePropertyName, string entityAlias)
        {
            this.ImageType = imageType;
            this.StepId = stepId;
            this.MessagePropertyName = messagePropertyName;
            this.EntityAlias = entityAlias;
        }

        public ImageType ImageType { get; private set; }
        public string StepId { get; private set; }
        public string MessagePropertyName { get; private set; }
        public string EntityAlias { get; private set; }
        public string Attributes { get; set; }
    }

    public enum ImageType
    {
        PreImage = 0,
        PostImage = 1,
        Both = 2,
    }
}
